package com.ruoyi.project.his.system.service.impl;

import com.ruoyi.project.his.system.domain.HisDepartment;
import com.ruoyi.project.his.system.domain.HisRegistryCost;
import com.ruoyi.project.his.system.mapper.HisRegistryCostMapper;
import com.ruoyi.project.his.system.service.IHisRegistryCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HisRegistryCostServiceImpl implements IHisRegistryCostService {
    //声明mapper层属性
    @Autowired
    private HisRegistryCostMapper hisRegistryCostMapper;
    //修改挂号费信息
    @Override
    public int updateRegistryCost(HisRegistryCost hisRegistryCost) {
        return hisRegistryCostMapper.updateRegistryCost(hisRegistryCost);
    }
    //删除挂号费信息
    @Override
    public int deleteRegistryCostByIds(Long[] registryCostIds) {
        return hisRegistryCostMapper.deleteRegistryCostByIds(registryCostIds);
    }

    //根据ID查询检查费信息
    @Override
    public HisRegistryCost selectRegistryCostById(Long registryCostId) {
        return hisRegistryCostMapper.selectRegistryCostById(registryCostId);
    }

    //新增挂号费信息
    @Override
    public int insertHisRegistryCost(HisRegistryCost hisRegistryCost) {
        return hisRegistryCostMapper.insertRegistryCost(hisRegistryCost);
    }

    //动态查询挂号费信息
    @Override
    public List<HisRegistryCost> selectHisRegistryCostList(HisRegistryCost hisRegistryCost) {
        return hisRegistryCostMapper.selectRegistryCostList(hisRegistryCost);
    }
}
